<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>维修订单</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	    <script src="js/rem.js"></script>
	    <link href="css/mui.min.css" rel="stylesheet" />
	    <link rel="stylesheet" href="css/reset.css" />
	    <link rel="stylesheet" href="css/main.css" />
	    <link rel="stylesheet" href="css/mui.min.css">
	    <link rel="stylesheet" href="css/common.css"/>
	    <link rel="stylesheet" href="css/iconfont.css" />
	    <link rel="stylesheet" href="css/jfmx.css"/>
	    <link rel="stylesheet" href="css/dingdan.css"/>
	    <link rel="stylesheet" type="text/css" href="css/header.css"/>
	</head>
	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">维修订单</h1>
		</header>
		<div id="page_main">
            <div class="dingdan bgWhite">
            	<div id="allindent" class="active">全部</div>
            	<div id="wait-maintain">等待维修</div>
            	<div id="wait-evaluate">待评价</div>
            	<div id="cancel-indent">已取消</div>
            </div>
            <ul class="alldingdan">
            	<li class=" bgWhite pad">
        			<div class="dingdan-left"><img src="image/icons/appliance.png"/></div>
        			<div class="dingdan-conten">
        				<p>半自动洗衣机维修</p>
        				<p>下单时间：2017-05-04 10:39</p>
        				<p>总价：￥116.00</p>
        				<p>实付：￥107.80</p>
        			</div>
        			<div class="dingdan-right">
        				<div class="dingdan-state">待评价</div>
        				<a href="yhdp.html"><div class="evaluate">评价</div></a>
        			</div>
            	</li>
            	<li class=" bgWhite pad">
        			<div class="dingdan-left"><img src="image/icons/appliance.png"/></div>
        			<div class="dingdan-conten">
        				<p>空调安装</p>
        				<p>下单时间：2017-05-04 10:39</p>
        				<p>总价：￥69.00</p>
        			</div>
        			<div class="dingdan-right">
        				<div class="dingdan-state">已评价</div>
        			</div>
            	</li>
            	<li class=" bgWhite pad">
        			<div class="dingdan-left"><img src="image/icons/appliance.png"/></div>
        			<div class="dingdan-conten">
        				<p>半自动洗衣机维修</p>
        				<p>下单时间：2017-05-04 10:39</p>
        				<p>总价：￥116.00</p>
        				<p>实付：￥107.80</p>
        			</div>
        			<div class="dingdan-right">
        				<div class="dingdan-state">等待维修</div>
        			</div>
            	</li>
            	<li class=" bgWhite pad">
        			<div class="dingdan-left"><img src="image/icons/appliance.png"/></div>
        			<div class="dingdan-conten">
        				<p>空调安装</p>
        				<p>下单时间：2017-05-04 10:39</p>
        				<p>总价：￥69.00</p>
        			</div>
        			<div class="dingdan-right">
        				<div class="dingdan-state">交易失败</div>
        			</div>
            	</li>
            </ul>
            <ul class="wait-maintain">
            	<li class=" bgWhite pad">
        			<div class="dingdan-left"><img src="image/icons/appliance.png"/></div>
        			<div class="dingdan-conten">
        				<p>半自动洗衣机维修</p>
        				<p>下单时间：2017-05-04 10:39</p>
        				<p>总价：￥116.00</p>
        				<p>实付：￥107.80</p>
        			</div>
        			<div class="dingdan-right">
        				<div class="dingdan-state">等待维修</div>
        			</div>
            	</li>
            </ul>
            <ul class="wait-evaluate">
            	<li class=" bgWhite pad">
        			<div class="dingdan-left"><img src="image/icons/appliance.png"/></div>
        			<div class="dingdan-conten">
        				<p>半自动洗衣机维修</p>
        				<p>下单时间：2017-05-04 10:39</p>
        				<p>总价：￥116.00</p>
        				<p>实付：￥107.80</p>
        			</div>
        			<div class="dingdan-right">
        				<div class="dingdan-state">待评价</div>
        				<a href="yhdp.html"><div class="evaluate">评价</div></a>
        			</div>
            	</li>
            </ul>
            <ul class="cancel-indent">
            	<li class=" bgWhite pad">
        			<div class="dingdan-left"><img src="image/icons/appliance.png"/></div>
        			<div class="dingdan-conten">
        				<p>空调安装</p>
        				<p>下单时间：2017-05-04 10:39</p>
        				<p>总价：￥69.00</p>
        			</div>
        			<div class="dingdan-right">
        				<div class="dingdan-state">交易失败</div>
        			</div>
            	</li>
            </ul>
		</div>
		<script src="js/mui.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/dingdan.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var pad = document.getElementsByClassName("pad");
			var state = document.getElementsByClassName("dingdan-state");
			for(var j = 0;j<state.length; j++){
				if(state[j].innerText =="等待维修"){
					console.log(state[j].innerText);
						pad[j].addEventListener("tap",function(){
							mui.openWindow({
							    url:'wxpgd.html',
							    id :'wxpgd.html',
							})
						})
				}
			}

		</script>
	</body>
</html>
